import copy from './v-copy'
import authority from './v-authority'
import input from './v-input'
import inputFocus from './v-input-focus'
import inputBlur from './v-input-blur'
import clickOutside from './v-click-outside'
import inputSelection from './v-input-selection'
// 自定义指令
const directives = {
  clickOutside,
  authority, //按钮权限
  copy,
  input,
  inputFocus,
  inputBlur,
  inputSelection
}

export default {
  install(Vue) {
    Object.keys(directives).forEach((key) => {
      Vue.directive(key, directives[key])
    })
  }
}
